Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Unify command output format flag #336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abukosek
Copy link
Contributor

Closes #322.

Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for oasisprotocol-cli canceled.

Name Link
🔨 Latest commit 740ed50
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-cli/deploys/6762af2981ff1e0008683d27

@abukosek abukosek force-pushed the andrej/feature/format branch from d0d1c49 to fd3c782 Compare December 12, 2024 17:34
@abukosek abukosek marked this pull request as ready for review December 12, 2024 17:38
@abukosek abukosek force-pushed the andrej/feature/format branch from fd3c782 to 740ed50 Compare December 18, 2024 11:16
@abukosek abukosek requested a review from matevz December 18, 2024 11:17
Copy link
Member

@matevz matevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

FormatText FormatType = "text"
// Output JSON.
FormatJSON FormatType = "json"
)
Copy link
Member

@matevz matevz Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also use cbor when generating transactions. E.g. oasis account transfer --unsigned --format cbor -o out.cbor and then you do offline signing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I noticed that, but it seems to be only used by that specific command, so it didn't make sense to me to have it as a global option if no other command supports it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: Move --format under common flags
2 participants